#ifndef __ULTRASONIC_H__
#define __ULTRASONIC_H__

#include <STC15F2K60S2.H>
#include "intrins.h"

#define somenop {_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();_nop_(); _nop_();}

sbit TX = P1^0;  //发射引脚
sbit RX = P1^1;  //接收引脚

extern float distance;

float Ultrasonic_Ranging(void);
void Buzzer_Alarm(void);

#endif